package com.shycloud.mido.opter.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import lombok.Data;

/**
 * 入库单
 */
@Data
@TableName(value = "stock_in_order")
public class StockInOrder {

	/** 入库订单ID */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/** 供应商ID */
	@TableField(value = "supplier_id")
	private Integer supplierId;

	/** 供应商名称 */
	@TableField(value = "supplier_name")
	private String supplierName;

	/** 发货日期 */
	@TableField(value = "delivery_date")
	private Date deliveryDate;

	/** 附件 */
	@TableField(value = "url")
	private String url;

	/** 备注 */
	@TableField(value = "`comment`")
	private String comment;

	/** 是否提交 */
	@TableField(value = "is_commit")
	private String isCommit;

	/** 创建时间 */
	@TableField(value = "create_time")
	private Date createTime;

	/** 仓库 ID */
	@TableField(value = "warehouse_id")
	private Integer warehouseId;

	public static final String COL_ID = "id";

	public static final String COL_SUPPLIER_ID = "supplier_id";

	public static final String COL_SUPPLIER_NAME = "supplier_name";

	public static final String COL_DELIVERY_DATE = "delivery_date";

	public static final String COL_URL = "url";

	public static final String COL_COMMENT = "comment";
}